
public class B extends A {
	
	 void foo(A b) {
		 
		System.out.print("foo B");
		foo2();
			
	 }
	 
	
	 
	public static void main(String[] args) {
		
		A a = new B();
		
		B bb = new B();
		
		
		int x=0;                           
		
		a.foo(bb);
		
		
		
	}

}
